package exceptionHandleTest;


import static org.junit.Assert.*;

import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized.Parameters;
import org.junit.runners.Parameterized;
@RunWith(Parameterized.class)
public class testEHTest {
	private static testEH teh = new testEH();
	private int param;
	private int param2;
	 @Before
     public void setUp() throws Exception {
     }

     @After
     public void tearDown() throws Exception {
     }
   
     public testEHTest(int param, int param2) {

         this.param = param;
         this.param2 = param2;
     }
     @Parameters   

     public static Collection<Object[]> data(){

             return Arrays.asList(new Object[][]{

                     {2, 0},  {2, 1},  {2, 2},

                     {1, 0},  {1, 1},  {1, 2},

                     {0, 0},  {0, 1},  {0, 2}

             });

     }


	@Test(timeout = 1000)
	public void testAB() throws IOException {
	//	fail("Not yet implemented");
		testEH.setA(param);
		testEH.setB(param2);
		testEH.main(null);
		assertEquals(1,1);
	}
	
}
